home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8130 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.2 KB

  1. Path: news2.near.net!ceylon!news
  2. From: Brenda <g051286>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What is &Variable (declared as: char Variable[10])?
  5. Date: 1 Mar 1996 18:49:02 GMT
  6. Organization: GTE Laboratories Incorporated
  7. Message-ID: <4h7gqu$lce@ceylon.gte.com>
  8. References: <4gqpa1$3h9@alcor.usc.edu> <4gtab6$acb@ceylon.gte.com> <313318b8.53776146@nntp.ix.netcom.com> <4h1u9d$sqq@ceylon.gte.com> <4h4kp8INNse4@anvil.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: 138.83.53.101
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (X11; I; HP-UX A.09.05 9000/712)
  14. X-URL: news://132.197.8.2/4h4kp8INNse4@anvil.ugrad.cs.ubc.ca
  15.  
  16. c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) wrote:
  17. >In article <4h1u9d$sqq@ceylon.gte.com>, Brenda  <g051286> wrote:
  18. >>(from "A Book On C", Kelley & Pohl, pg 200)
  19. >                                     ^^^^^^^
  20. >>Constructs not to be pointed at:
  21. >
  22. >Brenda, why don't you get a copy of the Kernighan and Ritchie book, _The C
  23. >Programming Language_, second edition?
  24. >
  25. >By page 200, K&R2 is well into the Appendix A, which will dispel all the myths
  26. >you have been led to believe.
  27. >
  28. >Really, what is the point of having any other C book (other than the IS
  29. >document---another highly recommended volume. The library of a large university
  30. >will likely have this, though they may not let you borrow it! :)
  31. >
  32. >-- 
  33. >
  34.  
  35. Ok, I will be holding a book burning - anyone wishing to bring a copy of
  36. "A Book on C" is cordially invited.  This book isn't outdated (copyrights of
  37. 1984 and 1990, and I have the 2nd edition), it's just wrong - as was so
  38. clearly pointed out to me by more knowledgeable posters.  This is the text
  39. that was utilized in my university and if any of the other students took
  40. phrases like:
  41.     "In C, a string is an array of characters, and an array name by
  42.      itself is a pointer.... A pointer is just an address of an object
  43.      in memory..." (pg. 29)
  44. then I fear more than I have been misled.  Arrays are referred to as "fixed"
  45. or "constant" pointers throughout this book and since I have had that
  46. falsehood reinforced in classes apart from my university, I accepted this as
  47. true.  But anyway, thanks for the constructive criticism and helpful advice.
  48.  
  49. Brenda
  50.  
  51.